package com.qj.yantaishan.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qj.yantaishan.common.annotation.Excel;
import com.qj.yantaishan.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 shanglala_user_points_record
 * 
 * @author qihe
 * @date 2022-07-22
 */
public class UserPointsRecord
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户uid */
    @Excel(name = "用户uid")
    private Long uid;

    /** 获取积分的 来源商铺id */
    @Excel(name = "获取积分的 来源商铺id")
    private Long storeId;

    /** 赠送积分来源的订单 */
    @Excel(name = "赠送积分来源的订单")
    private Long orderId;

    /** 获取积分数 */
    @Excel(name = "获取积分数")
    private Long points;

    /** 获取积分方式：1:关注我的微信；2:成功交易数量；3:购买金额达到多少,5:满减送送的积分 */
    @Excel(name = "获取积分方式：1:关注我的微信；2:成功交易数量；3:购买金额达到多少,5:满减送送的积分")
    private Integer type;

    /** 是否可用：0：不可以用，1可以使用 */
    @Excel(name = "是否可用：0：不可以用，1可以使用")
    private Integer isAvailable;

    /** 0:不发送；1发送通知粉丝获得积分 */
    @Excel(name = "0:不发送；1发送通知粉丝获得积分")
    private Integer isCallToFans;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long timestamp;

    /** 变更金额 */
    @Excel(name = "变更金额")
    private BigDecimal money;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setPoints(Long points) 
    {
        this.points = points;
    }

    public Long getPoints() 
    {
        return points;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setIsAvailable(Integer isAvailable) 
    {
        this.isAvailable = isAvailable;
    }

    public Integer getIsAvailable() 
    {
        return isAvailable;
    }
    public void setIsCallToFans(Integer isCallToFans) 
    {
        this.isCallToFans = isCallToFans;
    }

    public Integer getIsCallToFans() 
    {
        return isCallToFans;
    }
    public void setTimestamp(Long timestamp) 
    {
        this.timestamp = timestamp;
    }

    public Long getTimestamp() 
    {
        return timestamp;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("storeId", getStoreId())
            .append("orderId", getOrderId())
            .append("points", getPoints())
            .append("type", getType())
            .append("isAvailable", getIsAvailable())
            .append("isCallToFans", getIsCallToFans())
            .append("timestamp", getTimestamp())
            .append("money", getMoney())
            .toString();
    }
}
